<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html  xmlns="http://www.w3.org/1999/xhtml">
<head  >

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Responsive Bootstrap Advance Admin Template</title>

    <!-- BOOTSTRAP STYLES-->
    <link href="/my_xm/Public/Admin/assets/css/bootstrap.css" rel="stylesheet" />
    <!-- FONTAWESOME STYLES-->
    <link href="/my_xm/Public/Admin/assets/css/font-awesome.css" rel="stylesheet" />
       <!--CUSTOM BASIC STYLES-->
    <link href="/my_xm/Public/Admin/assets/css/basic.css" rel="stylesheet" />
    <!--CUSTOM MAIN STYLES-->
    <link href="/my_xm/Public/Admin/assets/css/custom.css" rel="stylesheet" />

    <!-- GOOGLE FONTS-->
    <link rel="stylesheet" type="text/css" href="/my_xm/Public/Admin/assets/js/jquery.datetimepicker.css"/>


</head>
<body>
    <div id="wrapper">
        <nav class="navbar navbar-default navbar-cls-top " role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html">COMPANY NAME</a>
            </div>

            <div class="header-right">

                <a href="message-task.html" class="btn btn-info" title="New Message"><b>30 </b><i class="fa fa-envelope-o fa-2x"></i></a>
                <a href="message-task.html" class="btn btn-primary" title="New Task"><b>40 </b><i class="fa fa-bars fa-2x"></i></a>
                <a href="login.html" class="btn btn-danger" title="Logout"><i class="fa fa-exclamation-circle fa-2x"></i></a>

            </div>
        </nav>
        <!-- /. NAV TOP  -->
        <nav class="navbar-default navbar-side" role="navigation">
            <div class="sidebar-collapse">
                <ul class="nav" id="main-menu">
                    <?php if(is_array($top_nav)): foreach($top_nav as $key=>$v): ?><li>
                        <a href="#"><i class="fa fa-desktop "></i><?php echo ($v["name"]); ?><span class="fa arrow"></span></a>
                         <ul class="nav nav-second-level">
                            <?php if(is_array($child_nav)): foreach($child_nav as $key=>$vi): if(($v['id']) == $vi['pid']): ?><li>
                                <a href="<?php echo U($vi['url']);?>"><i class="fa fa-circle-o "></i><?php echo ($vi["name"]); ?></a>
                            </li><?php endif; endforeach; endif; ?>
                        </ul>
                    </li><?php endforeach; endif; ?>
                        </ul>
                    </li>

                </ul>

            </div>

        </nav>
        <!-- /. NAV SIDE  -->



     <div id="page-wrapper">
            <div id="page-inner">
                <div class="row">
                    <div class="col-md-12">
                        <h1 class="page-head-line">分类添加</h1>
                        <h1 class="page-subhead-line">This is dummy text , you can replace it with your original text. </h1>

                    </div>
                </div>
                <!-- /. ROW  -->
                <div class="row">

<div class="col-md-6 col-sm-6 col-xs-12">
               <div class="panel panel-danger">
                        <div class="panel-heading">
                           SINGUP FORM
                        </div>
                        <div class="panel-body">
                            <form role="form"  action="" method="post" enctype="multiple/form-data">
                               <div class="form-group">
                                            <label>分类层级</label>
                                            <select class="form-control" name="goods_type_id">
                                                <option value="0">顶级层</option>
                                               <?php if(is_array($list)): foreach($list as $key=>$v): ?><option value="<?php echo ($v["id"]); ?>"><?php echo ($v["name"]); ?></option><?php endforeach; endif; ?>
                                            </select>
                                        </div>

                                 <div class="form-group">
                                            <label>名称</label>
                                            <input type="text" class="form-control" name="name">
                                     <p class="help-block">Help text here.</p>
                                        </div>
                                            <div class="form-group">
                                            <label>链接</label>
                                            <input type="text" class="form-control" name="http" >
                                     <p class="help-block">Help text here.</p>
                                        </div>

                                 <div class="form-group">
                                            <label>选择分类</label>
                                            <select class="form-control" name="goods_type_id">
                                              <?php if(is_array($goods_type)): foreach($goods_type as $key=>$v): ?><option value="<?php echo ($v["id"]); ?>"><?php echo ($v["name"]); ?></option><?php endforeach; endif; ?>
                                            </select>
                                        </div>




                                     <p class="help-block">Help text here.</p>
                                         <div class="form-group">
                                            <label>是否显示</label>
                                            <div class="radio">
                                                <label>
                                                    <input type="radio" name="is_show" id="optionsRadios1" value="1" checked="">是
                                                </label>
                                            </div>
                                            <div class="radio">
                                                <label>
                                                    <input type="radio" name="is_show" id="optionsRadios2" value="2">否
                                                </label>
                                            </div>

                                        </div>
                                    <p class="help-block">Help text here.</p>
                                        <button class="btn btn-danger" type="submit">提交 Now </button>

                                    </form>
                            </div>
                        </div>
                            </div>
        </div>
             <!--/.ROW-->


            </div>
            <!-- /. PAGE INNER  -->
        </div>

        









    </div>
    <!-- /. WRAPPER  -->

    <div id="footer-sec">
        &copy; 2014 YourCompany | More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a>
    </div>
    <!-- /. FOOTER  -->
    <!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
    <!-- JQUERY SCRIPTS -->
    <script src="/my_xm/Public/Admin/assets/js/jquery-1.10.2.js"></script>
    <!-- BOOTSTRAP SCRIPTS -->
    <script src="/my_xm/Public/Admin/assets/js/bootstrap.js"></script>
    <!-- METISMENU SCRIPTS -->
    <script src="/my_xm/Public/Admin/assets/js/jquery.metisMenu.js"></script>
       <!-- CUSTOM SCRIPTS -->
    <script src="/my_xm/Public/Admin/assets/js/custom.js"></script>



</body>
</html>


        <script type="text/javascript">
            $(function(){

              $('.fontawesome-icon-list a').click(function() {

                 var icon=$(this).text();
                 $('.icon').val(icon);

              });

            })




        </script>